<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<form name="frm">
			<input type="text" name="nam" value="123" />
		</form>
	</body>
	<script>
		console.log(document.frm.nam.value);
	</script>
</html>
